import os
import sys
from  locust_runs.run_pytest_main import runCase
base_path = os.getcwd()
# print(base_path)
#获取主程序路径
sys.path.append(base_path)
base_path_init = os.path.abspath(os.path.join(os.path.dirname('settings.py'), os.path.pardir))
#更换调试脚本名称 test_maintenanceinfo001.py
#file_path = base_path + "/test_cases/maintenance/test_maintenanceinfo.py"
#file_path = base_path + "/test_cases/spcokcheck/test_spockcheck_normal.py"
file_path = base_path + "/test_cases/maintenance/dev_testcase2-5.py"
#file_path = base_path + "/test_cases/maintenance/dev_testcase1-1.py"
#file_path = base_path + "/test_cases/maintenance/dev_testcase1-2.py"
#file_path = base_path + "/test_cases/hidden/dev_hidden_1-1"

# print(base_path_init)
if __name__ == '__main__':
    #非web界面调试数据,不写入log日志
    #runCase.case_for_run(file_path=file_path)

    #非web界面调试数据,写入log日志
    #runCase.case_for_run(param="log",file_path=file_path)
    #ui界面不写入日志
    runCase.case_for_run(file_path=file_path,run_name="webui")
    #ui界面写入日志
    #runCase.case_for_run(param="log",file_path=file_path, run_name="webui")









# See PyCharm help at https://www.jetbrains.com/help/pycharm/
